package com.fengxu.springcloud.service;

import com.fengxu.springcloud.mapper.PaymentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.function.Function;

@Service
public class PaymentServiceImpl implements PaymentService{

    @Autowired
    private PaymentMapper paymentMapper;

    @Override
    public <R> R execute(Function<PaymentMapper, R> param) {
        return param.apply(paymentMapper);
    }
}
